package com.guet.niit.Login.pojo;

import javafx.beans.property.DoubleProperty;
import javafx.beans.property.IntegerProperty;
import javafx.beans.property.LongProperty;
import javafx.beans.property.StringProperty;

import java.time.LocalDateTime;

public class StationData {
//    private LongProperty id;
    private StringProperty stationName;
    private StringProperty city;
    private StringProperty address;
//    private LongProperty agentId;
    private StringProperty agentName;
//    private StringProperty stationDetails;
//    private LocalDateTime openStartTime;
//    private LocalDateTime openEndTime;
//    private StringProperty openTime;
    private DoubleProperty parkingFee;
    private StringProperty haveParkingFee;
    private DoubleProperty rent;
//    private StringProperty operation;

    public String getStationName() {
        return stationName.get();
    }

    public StringProperty stationNameProperty() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName.set(stationName);
    }

    public String getCity() {
        return city.get();
    }

    public StringProperty cityProperty() {
        return city;
    }

    public void setCity(String city) {
        this.city.set(city);
    }

    public String getAddress() {
        return address.get();
    }

    public StringProperty addressProperty() {
        return address;
    }

    public void setAddress(String address) {
        this.address.set(address);
    }

    public String getAgentName() {
        return agentName.get();
    }

    public StringProperty agentNameProperty() {
        return agentName;
    }

    public void setAgentName(String agentName) {
        this.agentName.set(agentName);
    }

    public double getParkingFee() {
        return parkingFee.get();
    }

    public DoubleProperty parkingFeeProperty() {
        return parkingFee;
    }

    public void setParkingFee(double parkingFee) {
        this.parkingFee.set(parkingFee);
    }

    public String getHaveParkingFee() {
        return haveParkingFee.get();
    }

    public StringProperty haveParkingFeeProperty() {
        return haveParkingFee;
    }

    public void setHaveParkingFee(String haveParkFee) {
        this.haveParkingFee.set(haveParkFee);
    }

    public double getRent() {
        return rent.get();
    }

    public DoubleProperty rentProperty() {
        return rent;
    }

    public void setRent(double rent) {
        this.rent.set(rent);
    }

//    public String getOperation() {
//        return operation.get();
//    }
//
//    public StringProperty operationProperty() {
//        return operation;
//    }
//
//    public void setOperation(String operation) {
//        this.operation.set(operation);
//    }

    public StationData(StringProperty stationName, StringProperty city, StringProperty address, StringProperty agentName, DoubleProperty parkingFee, StringProperty haveParkFee, DoubleProperty rent) {
        this.stationName = stationName;
        this.city = city;
        this.address = address;
        this.agentName = agentName;
        this.parkingFee = parkingFee;
        this.haveParkingFee = haveParkFee;
        this.rent = rent;
//        this.operation = operation;
    }

    public StationData() {
    }

    @Override
    public String toString() {
        return "StationData{" +
                "stationName=" + stationName +
                ", city=" + city +
                ", address=" + address +
                ", agentName=" + agentName +
                ", parkingFee=" + parkingFee +
                ", haveParkingFee=" + haveParkingFee +
                ", rent=" + rent +
                '}';
    }
}
